const router = require('koa-router')()

router.get('/', async (ctx, next) => {
  await ctx.render('index', {
    title: 'Hello Koa 2!'
  })
})

const users = require('./users')
router.use('/users',users.routes(),users.allowedMethods())

const shops = require('./shops')
router.use('/shops',shops.routes(),shops.allowedMethods())

const goods = require('./goods')
router.use('/goods',goods.routes(),goods.allowedMethods())

const order = require('./orders')
router.use('/order',order.routes(),order.allowedMethods())


const Message = require('./message')
router.use('/msg',Message.routes(),Message.allowedMethods())



module.exports = router
